package bb.lanxing.adapter;

import android.view.View;
import androidx.recyclerview.widget.RecyclerView;

public interface IRVHeaderAdapter {

    public interface HeaderViewHolderBinder {
        void onBindFooterViewHolder(RecyclerView.ViewHolder holder, int index);

        void onBindHeaderViewHolder(RecyclerView.ViewHolder holder, int index);

        RecyclerView.ViewHolder onCreateFooterViewHolder(View view, int index);

        RecyclerView.ViewHolder onCreateHeaderViewHolder(View view, int index);
    }

    void addFooterView(View view);

    void addHeaderView(View view);

    int getFooterCount();

    int getHeaderCount();

    void removeFooterView(int index);

    void removeFooterView(View view);

    void removeHeaderView(int index);

    void removeHeaderView(View view);
}
